09. Rviz Package
Rviz Package
Launch
rviz
:
$ rosrun rviz rviz
Edit the
rviz
configuration:
-
Change the
Fixed Frame
to
base_footprint
-
Change the
Reference Frame
to
odom
-
Add a
RobotModel
-
Add a
camera
and select the/camera/rgb/image_raw
topic -
Add a
/ekfpath
topic and change the display name toEKFPath
-
Add a
/odompath
topic and change the display name toOdomPath
-
Change the
OdomPath
color tored:255;0;0
Save the
rviz
configuration:
Save the rviz configuration in
/home/workspace/catkin_ws/src
as
EKFLab.rviz
Now, kill the
rviz
terminal!
Relaunch
rviz
:
$ rosrun rviz rviz -d /home/workspace/catkin_ws/src/EKFLab.rviz
Quiz:
Rviz
Task Description:
Create an
rviz
Launch file by following these tasks:
Task Feedback:
Great Job!
Quiz Solution:
The RvizLaunch.launch file:
<launch>
<!--RVIZ-->
<node pkg="rviz" type="rviz" name="rviz" args="-d /home/workspace/catkin_ws/src/EKFLab.rviz"/>
</launch>
Launch Rvizlaunch.launch:
$ cd /home/workspace/catkin_ws/src
$ roslaunch RvizLaunch.launch